package com.bdth.bdthiss.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author LGP
 * @since 2020-04-06
 */
@TableName("sp_goods_photo")
public class GoodsPhoto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图片的md5值
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    /**
     * 原始图片路径
     */
    private String img;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "GoodsPhoto{" +
        ", id=" + id +
        ", img=" + img +
        "}";
    }
}
